<div class="zs-body" data-ng-init="formInit('operatingPost', {
		keyField:'id',
		randomFields:['id'],
		orderObject:{id:0} 
	}) && loadData('operatingPost');setConHei();">
	<div class="zs-map-tool">
		<div class="location">
			<a >首页</a>
			<i class="right-arr"></i>
			<a >运维管理</a>
			<i class="right-arr"></i>
			<a >岗位管理</a>
		</div>
		<div class="option">
			<input type="button" class="zs-btn orange" value="新建" 
				ng-click="addRow('operatingPost') && openWindow('edit');"/>
			<input type="button" class="zs-btn orange" value="编辑" 
				ng-click="editRow('operatingPost', operatingPost.sRows[0]) && openWindow('edit')"/>
			<input type="button" class="zs-btn orange" value="删除 " 
				ng-click="delEntitys('operatingPost')"/>
		</div>
	</div>
	<div class="zs-tree">
        <div class="zs-nice-tab idTabs">
            <div class="tool item" style="margin-left:6px;">
                <span class="search-warpper" style="width:230px">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="机构名称" 
                    	ng-model="dicTree.filterValue" 
                    	ng-change="comboFilter('dicTree')"/>
                </span>
            </div>
        </div>
        <div style="margin-left: 15px;margin-top: 15px;margin-right: 15px;">
            <ag-Tree fn='dicTree'
				para="{ uDictionary:true,
					dictionary:'p_organization',
					checkbox:false,
					pidField:'pid',
					leafField:'leaf',
					intLoadLevel:2}"
				onselect="operatingPostOrgSearch"
				ng-model='o'/>
        </div>
    </div>
    <div class="zs-content withTree" style="position:unset">
    	<div class="zs-nice-tab idTabs">
    		<div class="tool item" style="margin-left:6px">
	    		<span class="search-warpper">
	    			<i class="icon"></i>
		    		<input type="text" class="zs-input" placeholder="岗位名称" ng-model="operatingPost.queryObject['display:like']"/>
	    		</span>
    		</div>
    		<div class="operation item">
    			<a class="ope-1" ng-click="loadData('operatingPost')"></a>
    			<a  class="ope-2"></a>
    		</div>
    	</div>

        <div class="zs-data-table">
        	<div class="container">
	            <table>
	                <thead>
	                    <tr>
	                        <th>
	                        	<input id="allCheckbox" type="checkbox"
	                        		ng-click="selectAll('operatingPost','allCheckbox');">
	                        </th>
	                        <th>序号</th>
	                        <th>名称</th>
	                        <th>所属机构</th>
	                        <th>是否有效</th>
	                        <th>简称</th>
	                        <th>备注</th>
	                    </tr>
	                </thead>
	                <tbody>
	                    <tr ng-repeat="r in operatingPost.datas">
			                <td><input type="checkbox"
				                    ng-click="selectRow('operatingPost',r);"
				                    ng-model="r.selected" />
			                </td>
			                <td>
			                    <a ng-click="editRow('operatingPost',r) && openWindow('edit');">
			                        <label ng-bind="r.order"></label>
			                    </a>
			                </td>
			                <td>
			                    <a ng-click="editRow('operatingPost',r) && openWindow('edit');">
			                        <label ng-bind="r.display"></label>
			                    </a>
			                </td>
			                <td>
			                    <a ng-click="editRow('operatingPost',r) && openWindow('edit');">
			                        <label ng-bind="r.organizationName"></label>
			                    </a>
			                </td>
			                <td>
			                    <a ng-click="editRow('operatingPost',r) && openWindow('edit');">
			                        <label ng-bind="r.valid | asChineseBool"></label>
			                    </a>
			                </td>
			                <td>
			                    <a ng-click="editRow('operatingPost',r) && openWindow('edit');">
			                        <label ng-bind="r.abbreviation"></label>
			                    </a>
			                </td>
			                <td>
			                    <a ng-click="editRow('operatingPost',r) && openWindow('edit');">
			                        <label ng-bind="r.info"></label>
			                    </a>
			                </td>
			            </tr>
	                </tbody>
	            </table>
        	</div>
        </div>
        <div class="zs-pagination-box">
            <ag-Page fn='operatingPost'></ag-Page>
        </div>

        <div ag-Window id="edit" title="岗位编辑" width='560px' height='200px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form" novalidate>
				    <table width="100%">
				        <tbody>
				        	<tr>
		                        <td class="text" width="20%">*名称</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="operatingPost.editRow.display"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">简称</td>
		                        <td class="left" width="30%"><input type="text"
		                            class="zs-input" ng-model="operatingPost.editRow.abbreviation"></td>
		                    </tr>
		                    <tr>
		                    	<td class="text" width="20%">所属机构</td>
		                        <td class="left" width="30%">
				                    <!-- <ag-Combotree class="zs-input" style="width:154px;height:28px;" 
			                    		fn='orgEdit' para="{sn:'organization',
	                    							pidField:'pid',
	                    							leafField:'leaf',
													defaultQueryObject:{valid:true},
													queryObject:{pid:''},
													orderObject:{order:0}}"
										ng-model="operatingPost.editRow.organizationId"
										text-Value="operatingPost.editRow.organizationName"/> -->

									<ag-Combotree class="zs-input" style="width:154px;height: 28px" 
										para="{ uDictionary:true,
												dictionary:'p_organization',
												pidField:'pid',
	                    						leafField:'leaf'}"
										ng-model="operatingPost.editRow.organizationId"
										text-Value="operatingPost.editRow.organizationName"/>
								</td>
								<td class="text" width="20%">是否有效</td>
		                        <td class="left" width="30%">
		                        	<input type="checkbox" ng-model="operatingPost.editRow.valid"
		                        		ng-true-value='true' ng-false-value='false' value='true' />
		                        </td>
		                    </tr>
		                    <tr>
	                    	 	<td class="text" width="20%">序号</td>
		                        <td class="left" width="30%"><input type="text"
		                            class="zs-input" ng-model="operatingPost.editRow.order">
	                            </td>
	                            <td class="text" width="20%">描述</td>
                        		<td class="left" width="30%"><input type="text"
		                            class="zs-input" ng-model="operatingPost.editRow.info"></td>
		                    </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td colspan="4">
				                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
				                    	ng-click="formValidate(form) && save('operatingPost', operatingPost.editRow, saveCloseWindow)"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('edit')" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
    </div>
</div>